<?php

/**
 * Laravel-admin - admin builder based on Laravel.
 * @author z-song <https://github.com/z-song>
 *
 * Bootstraper for Admin.
 *
 * Here you can remove builtin form field:
 * Encore\Admin\Form::forget(['map', 'editor']);
 *
 * Or extend custom form field:
 * Encore\Admin\Form::extend('php', PHPEditor::class);
 *
 * Or require js and css assets:
 * Admin::css('/packages/prettydocs/css/styles.css');
 * Admin::js('/packages/prettydocs/js/main.js');
 *
 */
use App\Admin\Extensions\Form\CKEditor;
use App\Admin\Extensions\Form\LCEditor;
use Encore\Admin\Form;
Encore\Admin\Form::forget(['editor','tags','radio','map']);

\Encore\Admin\Form::extend('uploader',\App\Admin\Extensions\Uploader::class);
\Encore\Admin\Form::extend('tags',\App\Admin\Extensions\Form\Tag::class);
\Encore\Admin\Form::extend('radio',\App\Admin\Extensions\Form\Radio::class);
Form::extend('ckeditor', CKEditor::class);
Form::extend('lceditor', LCEditor::class);
Form::extend('map',\App\Admin\Extensions\Form\Bmap::class);
if(config('admin.is_load')){
    app('view')->prependNamespace('admin', resource_path('views/admin'));
}
